﻿{% extends 'index.html' %}

{% load i18n %}

{% block center-col %}

    <form class="search" action="/search" method="get" >
                      {{searchForm}}
                    <input type="submit" class="submit" value="بحث" />
        </form>
    
<br/>
<h2> العشائر الموجودة  </h2>

<br/>
{% for team in teams %}

<a href="/team/{{team.id}}"> {{ team.name}}  {{team.city}} </a>

{%endfor %}
{% for team in teams1 %}

<a href="/team/{{team.id}}"> {{ team.name}}  {{team.city}} </a>
   <a href="/accounts/signup" ><button class="join-us" >    انضم لهذه العشيرة </button>   </a>
<br/>

{%endfor %}
{% for team in teams2 %}

<table width="500">
<tr>
<td>

<a href="/team/{{team.id}}"> <h4> {{ team.name}}   {{team.city}} </h4>  </a>

</td>
<td>

{% if not  user.is_authenticated %}
   <a href="/accounts/signup" ><button class="join-us" >    انضم لهذه العشيرة </button>   </a>
{% endif %}
</td>
</tr>
</table>
{%endfor %}

{% endblock center-col %}